Skip to content

test: make sure to return promise from test#5336

Merged
SimenB merged 1 commit intojestjs:masterfrom
SimenB:clear-all-mocks-test-fix
Jan 17, 2018
Merged

test: make sure to return promise from test#5336
SimenB merged 1 commit intojestjs:masterfrom
SimenB:clear-all-mocks-test-fix

Conversation

@SimenB
Copy link
Copy Markdown
Member

@SimenB SimenB commented Jan 17, 2018

Summary
An asynchronous test did not return its promise.

Picked up by the new eslint rule jest-community/eslint-plugin-jest#42. 🎉

/cc @tushardhole

Test plan
Green CI

Copy link
Copy Markdown
Contributor

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #5336 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5336      +/-   ##
=========================================
+ Coverage   61.19%   61.2%   +0.01%     
=========================================
  Files         205     205              
  Lines        6903    6903              
  Branches        4       3       -1     
=========================================
+ Hits         4224    4225       +1     
+ Misses       2678    2677       -1     
  Partials        1       1
Impacted Files Coverage Δ
packages/jest-runtime/src/index.js 73.99% <0%> (+0.36%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a441ecf...1a30b95. Read the comment docs.

@SimenB SimenB merged commit 30a9ca2 into jestjs:master Jan 17, 2018
@SimenB SimenB deleted the clear-all-mocks-test-fix branch January 17, 2018 15:02
@tushardhole
Copy link
Copy Markdown
Contributor

✌️

@github-actions
Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants